jQuery(document).ready(function($) {
    (function() {
        if (window.location.href.indexOf('wenjuan.com')>0) {
            baseDomain = 'https://hawkeye.wenjuan.com';
        } else {
            baseDomain = 'https://hawkeye.wenjuan.com';
        }
        var hm = document.createElement("script");
        hm.src = baseDomain + "/wj.hawkeye.js?v=1.0.0";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    var _hmt = _hmt || [];
    _hmt.push(['_setAccount', 'f0408cb7d2a91c6071945ba170b9decc']);
    (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?f0408cb7d2a91c6071945ba170b9decc";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();

    $(function() {
        $("a img[src='http://eiv.baidu.com/hmt/icon/21.gif']").hide();
    });

    // (function(){
    //     var bp = document.createElement('script');
    //     bp.src = '//push.zhanzhang.baidu.com/push.js';
    //     var s = document.getElementsByTagName("script")[0];
    //     s.parentNode.insertBefore(bp, s);
    // })();

    //GrowingIO
    var _vds = _vds || [];
    window._vds = _vds;
    (function(){
        _vds.push(['setAccountId', 'afe8e95ef63d7230']);
        (function() {
          var vds = document.createElement('script');
          vds.type='text/javascript';
          vds.async = true;
          vds.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'assets.growingio.com/vds.js';
          var s = document.getElementsByTagName('script')[0];
          s.parentNode.insertBefore(vds, s);
        })();
    })();

});
